{extend name="public/base" /}
{block name="container"}
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="{:url('index/index/index')}">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-dashboard"></i>
                                        <strong class="font-bold">翔宇丹管理系统 </strong>
                                    </span>
                                </span>
                            </a>
                        </div>
                        <div class="logo-element">翔宇丹
                        </div>
                    </li>
                    <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                        <span class="ng-scope">分类</span>
                    </li>

                    {volist name="menu" id="vo"}

                   {if condition="count($vo.child) gt 0"}
                    <li>
                        <a href="#">
                            <i class="fa  {$vo.icon}"></i>
                            <span class="nav-label">{$vo.menu_name}</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                          {volist name="$vo['child']" id="c"}
                            <li>
                                <a class="J_menuItem" href="{$c.url}">{$c.menu_name}</a>
                            </li>
                            {/volist}
                        </ul>
                    </li>
                    {else /}
                    <li>
                        <a class="J_menuItem" href="{$vo.url}">

                            <i class="fa {$vo.icon}"></i>
                            <span class="nav-label">{$vo.menu_name}</span>
                        </a>
                    </li>
                   {/if}
                    {/volist}
                    <li class="line dk"></li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom" style="margin-top: 30px">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                              <!--   <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search"> -->
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#" title="管理员">
                              欢迎您 {$user['truename']}  <i class="fa fa-user"></i> 
                          </a>
                          <ul class="dropdown-menu dropdown-alerts">
                            <?php if(isset($folder)){ ?>
                                <li>
                                <a href="{:url('index/folder/show',array('id'=>$folder))}">
                                    <div>
                                        <i class="fa fa-folder"></i> 个人档案
                                    </div>
                                </a>
                            </li>
                            <?php }?>
                            <li>
                                <a href="{:url('index/login/logout')}">
                                    <div>
                                        <i class="fa fa-qq fa-fw"></i> 退出登录
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#" title="锁屏" onclick="lock()">
                            <i class="fa fa-expeditedssl"></i>
                        </a>
                        <script>
                            function lock()
                            {
                                window.location.href="/index/login/LockScreen";
                            }
                        </script>
                    </li>
                </ul>
            </nav>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe id="J_iframe" width="100%" height="100%" src="/index/{$con}/{$act}" frameborder="0" data-id="{:url('index/index/url',array('con'=>'index','act'=>'main'))}" seamless></iframe>
        </div>
    </div>
    <!--右侧部分结束-->
</div>
{/block}
{block name="js"}
<!-- 自定义js -->
<script src="__INDEX__/js/hAdmin.js?v=4.1.0"></script>
<script type="text/javascript" src="__INDEX__/js/index.js"></script>
<!-- 第三方插件 -->
<!--  <script src="__INDEX__/js/plugins/pace/pace.min.js"></script> -->
{/block}

